<!--{include header}-->
<!--{if is_get()}-->
<div class="sysmsgw" id="sysmsg-error"><div class="sysmsg"><p>Esta compra não está paga, por favor, tente pagá-la novamente.</p><span class="close">Fechar</span></div></div>
<!--{/if}-->

<div id="bdw" class="bdw">
<div id="bd" class="cf">
<div id="order-pay">
    <div id="content">
        <div id="deal-buy" class="box">
            <div class="box-top"></div>
            <div class="box-content">
                <div class="head">
                    <h2>Você deve pagar: <strong class="total-money">R$
                        ${moneyit($total_money)}</strong> </h2>
                </div>
                <div class="sect">
                    <div style="text-align:left;">
<!--{if $order['service']=='credit'}-->
<form id="order-pay-credit-form" method="post" sid="{$order_id}">
	<input type="hidden" name="order_id" value="{$order_id}" />
	<input type="hidden" name="service" value="credit" />
	<input type="submit" class="formbutton gotopay" value="Usar saldo da conta" />
</form>
<!--{elseif $order['service']=='paypal'}-->
<form id="order-pay-form" method="post" action="https://www.paypal.com/cgi-bin/webscr" target="_blank" sid="{$order['id']}">
	<input type="hidden" name="rm" value="2" />
	<input type="hidden" name="cmd" value="_xclick" />
	<input type="hidden" name="business" value="{$seller_acc}" />	
	<input type="hidden" name="notify_url" value="{$notify_url}" />
	<input type="hidden" name="return" value="{$return_url}" />
	<input type="hidden" name="transaction_subject" value="transcation - test" />
	<input type="hidden" name="item_name" value="{$subject}" />
	<input type="hidden" name="item_number" value="{$out_trade_no}" />
	<input type="hidden" name="currency_code" value="BRL" />
	<input type="hidden" name="amount" value="{$total_money}" />
	<img src="/static/css/i/paypal_logo.gif" /><br /><input type="submit" class="formbutton gotopay" value="Ir para o PayPal" />
</form>
<br />

<!--{elseif $order['service']=='alipay'}-->
<form id="order-pay-form" method="post" action="https://www.alipay.com/cooperate/gateway.do?_input_charset={$_input_charset}" target="_blank" sid="{$order['id']}">
	<input type="hidden" name="body" value="{$body}" />
	<input type="hidden" name="notify_url" value="{$notify_url}" />
	<input type="hidden" name="out_trade_no" value="{$out_trade_no}" />
	<input type="hidden" name="partner" value="{$partner}" />
	<input type="hidden" name="payment_type" value="1" />
	<input type="hidden" name="return_url" value="{$return_url}" />
	<input type="hidden" name="seller_email" value="{$seller_email}" />
	<input type="hidden" name="service" value="{$service}" />
	<input type="hidden" name="show_url" value="{$show_url}" />
	<input type="hidden" name="subject" value="{$subject}" />
	<input type="hidden" name="total_fee" value="{$total_money}" />
	<input type="hidden" name="sign_type" value="{$sign_type}" />
	<input type="hidden" name="sign" value="{$sign}" />
	<img src="/static/css/i/alipay.png" /><br /><input type="submit" class="formbutton gotopay" value="Goto Alipay" />
</form>
<!--{elseif $order['service']=='chinabank'}-->
<form id="order-pay-form" method="post" action="https://pay3.chinabank.com.cn/PayGate" target="_blank" sid="{$order['id']}">
	<input type="hidden" name="v_mid" value="{$v_mid}" />
	<input type="hidden" name="v_oid" value="{$v_oid}" />
	<input type="hidden" name="v_amount" value="{$total_money}" />
	<input type="hidden" name="v_moneytype" value="{$v_moneytype}" />
	<input type="hidden" name="v_url" value="{$v_url}" />
	<input type="hidden" name="v_md5info" value="{$v_md5info}" />
	<img src="/static/css/i/chinabank.png" /><br/><input type="submit" class="formbutton gotopay" value="Internet banking pay" style="vertical-align:middle;"/>
</form>
<!--{elseif $order['service']=='pagseguro'}-->
<form target="pagseguro" method="post" action="https://pagseguro.uol.com.br/checkout/checkout.jhtml">
  <input type="hidden" name="email_cobranca" value="{$partner}" />
  <input type="hidden" name="tipo" value="CBR" />
  <input type="hidden" name="moeda" value="BRL" />
  <input type="hidden" name="item_id" value="{$item_id}" />
  <input type="hidden" name="item_descr" value="{$item_desc}" />
  <input type="hidden" name="item_quant" value="{$quantity}" />
  <input type="hidden" name="item_valor" value="{$item_valor}" />
  <input type="hidden" name="frete" value="0" />
  <input type="hidden" name="peso" value="0" />
  <img src="/static/css/i/pagseguro_pag.gif" /><br/><input type="submit" class="formbutton gotopay" value="Ir para o Pagseguro" style="vertical-align:middle;"/>
</form>

<!--{/if}-->
						<div class="back-to-check"><a href="/order/check.php?id={$order_id}">&raquo; Volte para escolher outra forma de pagamento</a></div>
                    </div>
                </div>
            </div>
            <div class="box-bottom"></div>
        </div>
    </div>
</div>
</div> <!-- bd end -->
</div> <!-- bdw end -->

<!--{include footer}-->
